import http from "./http.ts";


/**
 * 获取登陆用户信息
 */
export const UserInfo = () => http.get("/auth/info")


/**
 * 用户分页
 * @param params
 */
export const UserPage = (params: any) => http.get("/user/page", {
    params: params
})

/**
 *  删除用户
 */
export const UserDelete = (userId: any) => http.delete("/user/"+userId)

/**
 * 新增用户
 */
export const UserAdd = (params: any) => http.post("/user/save", params)


